package com.cch.cooperation.common.exception;

/**
 * 业务异常
 *
 * @author cch
 */
public class BizException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private String messageCode;

    public BizException() {
    }

    public BizException(String message) {
        super(message);
    }

    public BizException(String message, String messageCode) {
        super(message);
        this.messageCode = messageCode;
    }

    public BizException(String message, Throwable cause) {
        super(message);
        this.initCause(cause);
    }

    public String getMessageCode() {
        return messageCode;
    }
}
